package com.crm.redis.service.userForumManager.impl;

import com.crm.redis.RedisPrefix;
import com.crm.redis.mapper.ValueRMapper;
import com.crm.redis.service.userForumManager.UserForumRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:chaifuyou
 * @Date: 2021/6/29 14:53
 */
@Service
public class UserForumRedisServiceImpl implements UserForumRedisService {

    @Autowired
    private StringRedisTemplate redisTemplate;

    /**
     * 查询优秀话题
     * @param
     */
    @Override
    public String selectGodTopic() {
        String key= RedisPrefix.FORUM_GOD_TOPIC;
        String result = ValueRMapper.getRedisString(redisTemplate, key);
        return result;
    }

}
